package com.mxsoft.proxy;

public class StaticProxyTest {
    public static void main(String[] args) {
        //被代理类
        IHello hello = new HelloImpl();
        //静态代理类
        IHello staticProxyHello = new HelloStaticProxyImpl(hello);

        //测试
        System.out.println(staticProxyHello.sayHello("alex"));
    }
}
